t =    [3043 4043 5043 6043 7043 8043];
arca = [14074.0 13208.6 12676.1 12710.4 12869.74 12928.24];
askl = [14725.6 14463.3 14691.3 14612.6 14687.23 14588.39];

prca_02 = [2464848.73 502289.54 479691.71 476494.93 478926.9 482352.0];
prca_1  = [5951320.58 624400.68 601802.85 598606.07 601038.04 604463.15];

pskl_02 = [2554193.30 537109.57 543307.22 538378.57 540746.08 538828.29];
pskl_1 =  [6121201.90 659220.71 665418.37 660489.71 662857.22 660939.43];

prca_vcd = [612983.42 570885.04 546103.74 534607.38 556561.3 557257.33];
pskl_vcd = [612201.90 659220.71 665418.37 660489.71 662857.22 660939.43];

prca_saif = [621048.13 587136.05 556244.51 551547.73 566140.64 563232.82];
pskl_saif = [610782.50 526316.04 529096.93 524168.27 526535.78 524617.99];
    
prca_vit_saif = [514411.38 478699.01 446900.65 439175.76 447218.78 456116.69];
pskl_vit_saif = [490325.10 511295.95 514076.81 509148.15 511515.67 509597.88];

figure(1);
hold on;
plot(t,arca);
plot(t,askl,'r');
xlabel('Timing constraint (ps)');
ylabel('Area (sq.um)');
legend('RCA-ALU','SKL-ALU');
title_text = sprintf('Change in area with timing constraints');
title(title_text);

figure(2);
hold on;
plot(t,prca_02);
plot(t,pskl_02,'r');
xlabel('Timing constraint (ps)');
ylabel('Power dissipation (nW)');
legend('RCA-ALU','SKL-ALU');
title_text = sprintf('Power dissipation v timing constraint probability case 1');
title(title_text);

figure(3);
hold on;
plot(t,prca_1);
plot(t,pskl_1,'r');
xlabel('Timing constraint (ps)');
ylabel('Power dissipation (nW)');
legend('RCA-ALU','SKL-ALU');
title_text = sprintf('Power dissipation v timing constraint probability case 2');
title(title_text);
%%
figure(4);
hold on;
plot(t,prca_vcd);
plot(t,pskl_vcd,'r');
xlabel('Timing constraint (ps)');
ylabel('Power dissipation (nW)');
legend('RCA-ALU','SKL-ALU');
title_text = sprintf('Power dissipation v timing constraint VCD');
title(title_text);
%%
figure(5);
hold on;
plot(t,prca_saif);
plot(t,pskl_saif,'r');
xlabel('Timing constraint (ps)');
ylabel('Power dissipation (nW)');
legend('RCA-ALU','SKL-ALU');
title_text = sprintf('Power dissipation v timing constraint SAIF');
title(title_text);

figure(6);
hold on;
plot(t,prca_vit_saif);
plot(t,pskl_vit_saif,'r');
xlabel('Timing constraint (ps)');
ylabel('Power dissipation (nW)');
legend('RCA-ALU','SKL-ALU');
title_text = sprintf('Power dissipation v timing constraint VIT-SAIF');
title(title_text);